<template>
  <div>
    <div class="default-main ba-table-box">
      <!-- <TableHeader
        :buttons="[
          'refresh',
          'add',
          'edit',
          'remove',
          'comSearch',
          'columnDisplay',
          'upload',
          'export',
        ]"
        :quick-search-placeholder="placeholder"
        @action="baTable.onTableHeaderAction"
      /> -->
    </div>
  </div>
</template>
<script lang="ts" setup>
import { ref, provide, onMounted, reactive, onBeforeUnmount } from "vue";
import baTableClass from "@/utils/baTable";
import { baTableApi, operatorShowOff } from "@/utils/common"; // 导入表格api方法生成器
import Table from "@/components/table/index.vue";
import TableHeader from "@/components/table/header/index.vue";
// import PopupForm from "./popupForm.vue";
import useCurrentInstance from "@/utils/useCurrentInstance";
import { useNavTabs } from "@/store/navTabs";
import { useRoute, useRouter } from "vue-router";

const tableRef = ref();
const route = useRoute();
const router = useRouter();
const navTabs = useNavTabs();
const placeholder = ref<string>("模糊搜索");
//全局事件总线
const { proxy } = useCurrentInstance();

//字段显隐记忆功能
const filedShowOff = (filter: any) => {
  if ((navTabs as any).columnDisplayStoreMap) {
    return (navTabs as any).columnDisplayStoreMap.get(
      route.path + "/" + filter
    );
  }
  return true;
};
// 每页个数记忆功能 默认10个
// const pageSizeKeep = () => {
//   if ((navTabs as any).pageSizeMap) {
//     return (navTabs as any).pageSizeMap.get(route.path + FactoryEquip)
//       ? (navTabs as any).pageSizeMap.get(route.path + FactoryEquip)
//       : 10;
//   }
//   return 10;
// };
</script>

<style lang="scss" scoped></style>
